home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 18
/
aminetcdnumber181997.iso
/
Aminet
/
dev
/
amos
/
AMOSList_0197.lzh
/
AMOSLIST
/
000038_amos-request@svcs1.digex.net_Thu Jan 9 18:45:34 1997.msg
< prev
next >
Wrap
Internet Message Format
|
1997-02-02
|
3KB
Received: from svcs1.digex.net (svcs1.digex.net [204.91.197.224])
by mail2.access.digex.net (8.8.4/8.8.4) with ESMTP
id SAA00234 for <mcox@access.digex.net>; Thu, 9 Jan 1997 18:45:33 -0500 (EST)
Received: (from daemon@localhost)
by svcs1.digex.net (8.8.4/8.8.4)
id OAA12413 for amos-out; Thu, 9 Jan 1997 14:40:17 -0500 (EST)
Received: from mail2.access.digex.net (mail2.access.digex.net [205.197.247.3])
by svcs1.digex.net (8.8.4/8.8.4) with ESMTP
id OAA12410 for <amos-list@svcs1.digex.net>; Thu, 9 Jan 1997 14:40:16 -0500 (EST)
Received: from lily.csv.warwick.ac.uk (root@lily.csv.warwick.ac.uk [137.205.192.7])
by mail2.access.digex.net (8.8.4/8.8.4) with ESMTP
id OAA10073 for <amos-list@access.digex.net>; Thu, 9 Jan 1997 14:40:15 -0500 (EST)
Received: from lily by lily.csv.warwick.ac.uk with SMTP
id TAA03302; Thu, 9 Jan 1997 19:40:06 GMT
Sender: csuaw@csv.warwick.ac.uk
Message-ID: <32D54990.52A3@warwick.ac.uk>
Date: Thu, 09 Jan 1997 19:40:00 +0000
From: James Daniels <J.R.Daniels@csv.warwick.ac.uk>
Organization: The University of Warwick
X-Mailer: Mozilla 3.01 (X11; I; SunOS 5.5.1 sun4m)
MIME-Version: 1.0
To: AMOS mailing list <amos-list@access.digex.net>
Subject: Re: Not Sorted On Sorting :(
References: <8025641A:0054DF30.00@cms-notes-a.salford.ac.uk>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Status: RO
X-Status:
Lee S Howarth wrote:
>
> A few days ago I got hold of a utility that converts Imagine objects to
> another binary format giving easier access to all the points and faces. I
> wrote the 3d routine in AMOS and used the binary data to draw the objects
> and faces, my problem with it now is hidden face ellimination on inconvex
> objects... Doing it on the convex objects is quite easy so i can have
> spheres, cubes etc but when I use toruses and irregular objects like
> models of the Enterprise(!) the faces obviosly get muddled(I use only the
> most technical jargon ;) So... does anybody know how to solve this
> nasty problem, any help would be MUCH appreciated.
> Oh, almost forgot, the faces are in clockwise order when they are saved
I guess from your 'subject' heading that you already know this, but all
you have to do is work out the distance of all the faces from you (the
camera). You can do this by adding up Z values. Then all you have to do
is sort these numbers (a simple bubble sort will do for starters) so
that the largest (furthest away) come first. You then draw each of the
faces in the order they are now stored in the sorted list. Easy. The
only problem is speed; the AMOS polygon routine just isn't fast enough;
unless, of course, you're not going for a real-time routine. Still, best
of luck...
--
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
/James Daniels Email: J.R.Daniels@warwick.ac.uk \
/(Apex Designs) WWW: http://www.warwick.ac.uk/~csuaw \
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/